const Command = require("./Command");

class WinexDataGenerationCommand extends Command {
    constructor(machineUuid, loginUrl, adminLoginData, hisLoginData, outpatientDoctorLoginData, inpatientDoctorLoginData, inpatientNurseLoginData) {
        super(machineUuid);
        this.loginUrl = loginUrl;
        this.adminLoginData = adminLoginData;
        this.hisLoginData = hisLoginData;
        this.outpatientDoctorLoginData = outpatientDoctorLoginData;
        this.inpatientDoctorLoginData = inpatientDoctorLoginData;
        this.inpatientNurseLoginData = inpatientNurseLoginData;
    }

    _createCommandType() {
        return "winexDataGeneration";
    }

    _createCommandData() {
        return {
            loginUrl: this.loginUrl,
            adminLoginData: this.adminLoginData,
            hisLoginData: this.hisLoginData,
            outpatientDoctorLoginData: this.outpatientDoctorLoginData,
            inpatientDoctorLoginData: this.inpatientDoctorLoginData,
            inpatientNurseLoginData: this.inpatientNurseLoginData
        }
    }

}

module.exports = WinexDataGenerationCommand;